﻿using gptDataType.Interface;
using gptDataType.Models;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace gptDataType.Type.bit
{
    public class PlcWord : PlcMemberBase

    {
        /// <summary>
        /// 16位无符号整数
        /// </summary>
        private ushort _value;

        public PlcWord() : base(string.Empty, DataType.Word, 2 * 8) { }
        public PlcWord(string name, ushort value)
            : base(name, DataType.Word, 2 * 8) => _value = value;


    }
}
